You can edit the SourceFormat.profile
in a text editor for precise control over how Dreamweaver writes source HTML. The profile is a text file saved in the /Dreamweaver/Configuration folder.
The source formatting profile determines how Dreamweaver formats the source HTML for a document. The profile includes formatting preferences for individual tags and groups of tags, along with the Source Format preferences (set with the Preferences command). Source Format preferences set with the Preferences command are saved to SourceFormat.profile
when you quit Dreamweaver, and changes made to the profile do not take effect until you restart Dreamweaver. Thus you should quit the program before editing the profile.
The source formatting profile follows a specific format, which is outlined in the file. Note the following conventions:
![]() |
Each section of the profile begins with a <? KEYWORD > (for example, <?OPTIONS>, <?ELEMENTS>, <?ATTRIBUTES> ). |
![]() |
The parameters for each section are defined within HTML comments (<!-- --> ) directly above the section. |
![]() |
The OMIT line in the <?OPTIONS> section is reserved for future use (it currently does not affect source formatting). |
![]() |
Individual tags can be marked as belonging to indention groups (IGROUP s) in the <?ELEMENTS> section; indention can be turned on or off for the entire group in the <?OPTIONS> section. IGROUP 1 is reserved for table rows and columns, and IGROUP 2 is reserved for framesets and frames. These groupings correspond to the "Indent table rows and columns" and "Indent framesets and frames" options in the Source Format Preferences dialog box. |
For example, the default settings for the P
tag in SourceFormat.profile
are <P BREAK="1,0,0,1" INDENT>
, which produces the following:
<p> A paragraph of text that is indented from the left margin, and that has a break before the opening P tag and after the closing P tag, but not after the opening P and not before the closing P.</p>
If you change the settings to <P BREAK="1,1,1,2">
you will get
<p> A paragraph of text that is not indented from the left margin, and that has one break before and after the opening P tag, one break before the closing P tag, and two breaks after the closing P tag. </p> <p> Next paragraph. </p>